<template>
	<view class="content_b">
		<view class="reference">
			订单编号:20250620546715
		</view>
		<view class="">
			<orderTitle content="早餐"></orderTitle>
			<view class="">
				<setMealOrder v-for="item in dishList" :item="item"></setMealOrder>
			</view>
		</view>
		<view class="">
			<orderTitle content="午餐"></orderTitle>
			<view class="">
				<setMealOrder v-for="item in dishList" :item="item" :class="{'t_border':index > 0}"></setMealOrder>
			</view>
		</view>
		<view class="">
			<orderTitle content="晚餐"></orderTitle>
			<view class="">
				<setMealOrder v-for="item in dishList" :item="item"></setMealOrder>
			</view>
		</view>
		<view class="flex_between">
			<view class="flex_align_conter">
				<view class="f12">
					合计
				</view>
				<view class="f10" style="color: #0EB275;margin-left: 6rpx;">
					￥
				</view>
				<view class="f20" style="color: #0EB275;">
					25
				</view>
			</view>
			<view class="flex_align_conter">
				<button style="margin-right: 20rpx;" @click=""
					class="cu-btn block round order_but light_t">取消预订</button>
				<button @click="" class="cu-btn block bg-green round order_but">修改订单</button>
			</view>
		</view>
	</view>
</template>
<script>
	import setMealOrder from '@/components/common/setMealOrder.vue'
	import orderTitle from '@/components/common/orderTitle.vue'
	// uni.hideTabBar()
	export default {
		name: '',
		data() {
			return {
				dishList: [{
						id: 11,
						num: 0,
						describe: '主菜：鱼香肉丝 配菜：宫保鸡丁、红烧肉 主食：米饭 汤类：紫菜蛋花汤', // 描述
						repertory: '12', // 库存
						sales: '30', //销量
						comboName: '经典套餐G1', // 套餐名称
						coverImage: 'https://ts1.tc.mm.bing.net/th/id/OIP-C.CStTKGUkoITaYBHnmU1SSAHaE7?w=240&h=211&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2',
						price: '26', // 价格
						comboId: 1,
						comboCode: null,
					},
					{
						id: 12,
						num: 0,
						describe: '主菜：鱼香肉丝 配菜：宫保鸡丁、红烧肉 主食：米饭 汤类：紫菜蛋花汤', // 描述
						repertory: '30', // 库存
						sales: '20', //销量
						comboName: '经典套餐H1', // 套餐名称
						coverImage: 'https://cdn.pixabay.com/photo/2024/02/22/06/50/wok-8589237_640.png',

						price: '13', // 价格
						comboId: 2,
						comboCode: null,
					},
				]
			}
		},
		components: {
			setMealOrder,
			orderTitle
		},
	}
</script>

<style scoped lang="scss">
	.content_b {
		width: 100%;
		padding: 24rpx 32rpx 32rpx;
		border-radius: 12rpx;
		background: #FFFFFF;
		margin-bottom: 20rpx;

		.reference {
			font-size: 28rpx;
			font-weight: 500;
			margin-bottom: 10rpx;
		}

		.t_border {
			position: relative;
		}

		.t_border::before {
			content: '';
			position: absolute;
			width: 100%;
			height: 2rpx;
			top: 0;
			left: 0;
			// right: 0;
			// bottom: 1rpx;
			background: #eee;
			z-index: 1;

		}

		.order_but {
			width: 160rpx;
			font-size: 28rpx;
			padding: 0;
		}


		.light_t {
			background: #fff;
			border: 1px solid #ddd;
			color: #323232;
		}


	}
</style>